package com.observer2.gsj20150607;

import java.util.Observable;

public class WeatherData extends Observable{
	
	private float temperature;
	
	private float pressure;

	public WeatherData(){
		
	}

	public void dataChanged(){
		setChanged();
		notifyObservers();
	}

	public void setData(float temperature, float pressure){
		this.temperature = temperature;
		this.pressure = pressure;
		dataChanged();
	}
	
	public float getTemperature() {
		return temperature;
	}

	public float getPressure() {
		return pressure;
	}
}
